public class AccountOperation extends HCIModelAdapter
charging results.
An account operation contains:
typeamount referenceamount assignmentsChargingResultThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="accountOperation">
<xs:complexType>
<xs:sequence>
<xs:element ref="amountAssignment" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="key" type="xs:int" use="required" />
<xs:attribute name="dependentAccountOperationKey" type="xs:int" use="required" />
<xs:attribute name="type" type="xs:string" use="required" />
<xs:attribute name="mainAccountReferenceType" type="xs:string" use="required" />
<xs:attribute name="mainAccountReferenceId" type="xs:string" use="required" />
<xs:attribute name="amount" type="xs:string" use="required" />
<xs:attribute name="netAmount" type="xs:string" use="required" />
<xs:attribute name="taxAmount" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
| Modifier and Type | Class and Description |
|---|---|
static class |
AccountOperation.AccountOperationType
This enumeration lists the possible types for an account operation.
|
static class |
AccountOperation.AccountReference
This class represents a reference to an account impacted by a charging operation.
|
static class |
AccountOperation.AccountReferenceType
This enumeration lists the possible types for an account reference.
|
static class |
AccountOperation.AmountAssignment
This class represents the assignment of part of the amount of an
account operation to an account. |
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The XML tag name of this object: "accountOperation"
|
| Constructor and Description |
|---|
AccountOperation()
Builds an uninitialized account operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
Money |
getAmount()
Gets the amount of the account operation.
|
List<AccountOperation.AmountAssignment> |
getAmountAssignments()
Gets the list of
amount assignments of the account operation. |
int |
getDependentAccountOperationKey()
Gets the numeric key of the account operation the the account operation depends on.
|
int |
getKey()
Gets the numeric key of the account operation.
|
AccountOperation.AccountReference |
getMainAccountReference()
Gets the main
amount reference of the account operation. |
Money |
getNetAmount()
Gets the net amount of the account operation.
|
String |
getTagName()
Gets the XML tag name of the HCI model.
|
Money |
getTaxAmount()
Gets the tax amount of the account operation.
|
AccountOperation.AccountOperationType |
getType()
Gets the
type of the account operation. |
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAmount(Money amount)
Sets the amount of the account operation.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setDependentAccountOperationKey(int dependentAccountOperationKey)
Sets the numeric key of the account operation the account operation depends on.
|
void |
setKey(int key)
Sets the numeric key of the account operation.
|
void |
setMainAccountReference(AccountOperation.AccountReference mainAccountReference)
Sets the main
amount reference of the account operation. |
void |
setNetAmount(Money netAmount)
Sets the net amount of the account operation.
|
void |
setTaxAmount(Money taxAmount)
Sets the tax amount of the account operation.
|
void |
setType(AccountOperation.AccountOperationType type)
Sets the
type of the account operation. |
marshalpublic static final String TAG_NAME
public AccountOperation()
public int getKey()
public void setKey(int key)
key - The numeric key of the account operationpublic int getDependentAccountOperationKey()
-1 if the account
operation has no dependencypublic void setDependentAccountOperationKey(int dependentAccountOperationKey)
dependentAccountOperationKey - The numeric key of the account operation the account operation depends onpublic AccountOperation.AccountOperationType getType()
type of the account operation.type of the account operationpublic void setType(AccountOperation.AccountOperationType type)
type of the account operation.type - The type of the account operationpublic Money getAmount()
public void setAmount(Money amount)
amount - The amount of the account operationpublic Money getNetAmount()
public void setNetAmount(Money netAmount)
netAmount - The net amount of the account operationpublic Money getTaxAmount()
public void setTaxAmount(Money taxAmount)
taxAmount - The tax amount of the account operationpublic AccountOperation.AccountReference getMainAccountReference()
amount reference of the account operation.amount reference of the account operationpublic void setMainAccountReference(AccountOperation.AccountReference mainAccountReference)
amount reference of the account operation.mainAccountReference - The main amount reference of the account operationpublic List<AccountOperation.AmountAssignment> getAmountAssignments()
amount assignments of the account operation.amount assignments of the account operationpublic String getTagName()
ITagNameProviderpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects into